package com.fpx.open.platform.domain;

import java.util.Date;

/**
 * 功能访问日志实体类
 * @author sunkey
 * @date Apr 2, 2013 10:11:16 AM
 * @version 1.0.0 
 * @copyright fpx.com
 */
public class ActionLog extends BaseDomain {
	/**
	 * 主键
	 */
    private Integer catLogId;
	/**
	 * 用户token
	 */
    private String customerToken;
    /**
     * 客户端ip
     */
    private String reqIp;
    /**
     * 被调用的接口方法
     */
    private String interfaceName;
    /**
     * 访问的时间
     */
    private Date dateRequest;
    /**
     * 返回的时间
     */
    private Date dateResponse;
    /**
     * 创建时间（数据库时间）
     */
    private Date dateCreated;
    /**
     * 状态 ，1：成功，0：失败
     */
    private Integer status;
    /**
     * 备注
     */
    private String remark;
    /**
     * 请求的数据
     */
    private String reqContent;
    /**
     * 返回的数据
     */
    private String respContent;

    private static final long serialVersionUID = 1L;

    public Integer getCatLogId() {
        return catLogId;
    }

    public void setCatLogId(Integer catLogId) {
        this.catLogId = catLogId;
    }

    public String getCustomerToken() {
        return customerToken;
    }

    public void setCustomerToken(String customerToken) {
        this.customerToken = customerToken == null ? null : customerToken.trim();
    }

    public String getReqIp() {
        return reqIp;
    }

    public void setReqIp(String reqIp) {
        this.reqIp = reqIp == null ? null : reqIp.trim();
    }

    public String getInterfaceName() {
        return interfaceName;
    }

    public void setInterfaceName(String interfaceName) {
        this.interfaceName = interfaceName == null ? null : interfaceName.trim();
    }

    public Date getDateRequest() {
        return dateRequest;
    }

    public void setDateRequest(Date dateRequest) {
        this.dateRequest = dateRequest;
    }

    public Date getDateResponse() {
        return dateResponse;
    }

    public void setDateResponse(Date dateResponse) {
        this.dateResponse = dateResponse;
    }

    public Date getDateCreated() {
        return dateCreated;
    }

    public void setDateCreated(Date dateCreated) {
        this.dateCreated = dateCreated;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }
    
    public String getReqContent() {
        return reqContent;
    }

    public void setReqContent(String reqContent) {
        this.reqContent = reqContent == null ? null : reqContent.trim();
    }

    public String getRespContent() {
        return respContent;
    }

    public void setRespContent(String respContent) {
        this.respContent = respContent == null ? null : respContent.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ActionLog other = (ActionLog) that;
        return (this.getCatLogId() == null ? other.getCatLogId() == null : this.getCatLogId().equals(other.getCatLogId()))
            && (this.getCustomerToken() == null ? other.getCustomerToken() == null : this.getCustomerToken().equals(other.getCustomerToken()))
            && (this.getReqIp() == null ? other.getReqIp() == null : this.getReqIp().equals(other.getReqIp()))
            && (this.getInterfaceName() == null ? other.getInterfaceName() == null : this.getInterfaceName().equals(other.getInterfaceName()))
            && (this.getDateRequest() == null ? other.getDateRequest() == null : this.getDateRequest().equals(other.getDateRequest()))
            && (this.getDateResponse() == null ? other.getDateResponse() == null : this.getDateResponse().equals(other.getDateResponse()))
            && (this.getDateCreated() == null ? other.getDateCreated() == null : this.getDateCreated().equals(other.getDateCreated()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark())
            && (this.getCatLogId() == null ? other.getCatLogId() == null : this.getCatLogId().equals(other.getCatLogId()))
                    && (this.getReqContent() == null ? other.getReqContent() == null : this.getReqContent().equals(other.getReqContent()))
                    && (this.getRespContent() == null ? other.getRespContent() == null : this.getRespContent().equals(other.getRespContent())));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getCatLogId() == null) ? 0 : getCatLogId().hashCode());
        result = prime * result + ((getCustomerToken() == null) ? 0 : getCustomerToken().hashCode());
        result = prime * result + ((getReqIp() == null) ? 0 : getReqIp().hashCode());
        result = prime * result + ((getInterfaceName() == null) ? 0 : getInterfaceName().hashCode());
        result = prime * result + ((getDateRequest() == null) ? 0 : getDateRequest().hashCode());
        result = prime * result + ((getDateResponse() == null) ? 0 : getDateResponse().hashCode());
        result = prime * result + ((getDateCreated() == null) ? 0 : getDateCreated().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        result = prime * result + ((getCatLogId() == null) ? 0 : getCatLogId().hashCode());
        result = prime * result + ((getReqContent() == null) ? 0 : getReqContent().hashCode());
        result = prime * result + ((getRespContent() == null) ? 0 : getRespContent().hashCode());
        return result;
    }
}